<!DOCTYPE html>
<html>
<head>
<title>固定布局</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">


<link rel="stylesheet" href="3.css" type="text/css"></link>
</head>
<!-- 
固定布局
position:fixed;设置布局为固定布局--不受滚动条的影响
left: 100px;
top: 100px;
固定布局也有偏移量
 -->
<body>

	<div id="position1">CSS定位</div>
	<script type="text/javascript">
		for ( var i = 0; i < 50; i++) {
			document.write(i+"<br />");
			
		}
	</script>
</body>
</html>
